class Student(name:String, age: Int) {

  def printInfo(): Unit = {
    println(name + " " + age + " " + Student.school)
  }

}

object Student {
  val school:String = "atguigu"

  def main(args: Array[String]): Unit = {
    var alice = new Student("alice", 20)
    var bob = new Student("bob", 23)

    alice.printInfo()
    bob.printInfo()
  }
}
